
<?php $this->JQuery()->javascriptCaptureStart() ?>
$j(document).ready(function() {
    $j('#translations input[type="text"]').each(function() {
        $j(this).blur(function() {
            if ($j(this).attr('prev') !== $j(this).attr('value')) {
                $j.post(
                    '<?php echo $this->geturl('edit','powerPoster ', null, 'admin1')?>',
                    {id:$j(this).attr('rel'), val:$j(this).attr('value'), loc:$j(this).attr('locale')}
                );
            }
        });
    });
});
<?php $this->JQuery()->javascriptCaptureEnd() ?>

<?php $this->headStyle()->captureStart()?>
    .wrap td { border:1px solid #000}
<?php $this->headStyle()->captureEnd()?>


<form method="get" name="user_form">
    <a href="<?php echo $this->geturl('add','powerPoster', null, 'admin1')?>">Add</a>
</form>
<table border="1" id="translations">
<?php
    $get = $_GET; unset($get['page']);
    $pagination = $this->pagination($this->listing_number, $this->page, 100, 4, $this->geturl('list', 'powerPoster', null, 'admin1', $get));
?>
<?php if($this->list &&  $this->list->count() == 0):?>
	No Power Posters are defined
<?php else:?>
    <tr>
        <th>
            
        </th>
        <th>
            Username
        </th>
        <th>
            Tagline
        </th>   
		<th>
            Logo
        </th>     
        <th>Date</th>
    </tr>
    <?php foreach ($this->list as $item):?>
        <tr>
            <td>
                <a href="<?php echo $this->geturl('delete','powerPoster', null, 'admin1', array('id'=> $item->_id, 'refer'=>$this->url()))?>">Delete</a>
            </td>
            <td>
                <?php echo htmlentities((string)$item->user->username, ENT_COMPAT, 'utf-8'); ?>
            </td>
            <td>
                <?php echo htmlentities((string)$item->tagline, ENT_COMPAT, 'utf-8'); ?>
            </td>
            <td>
                <?php echo !empty($item->logo) ? htmlentities((string)$item->logo, ENT_COMPAT, 'utf-8') : "No Logo"; ?>
            </td>
            <td style="white-space: nowrap;"><?php echo date('Y-m-d h:i:s', $item->c_dt->sec)?></td>
        </tr>
    <?php 
    endforeach; 
endif;
?>
</table>
<?php echo $pagination;?>